package com.barray.croputils.lib;

class Log {
    public static final int LEVEL_V = 0;
    public static final int LEVEL_D = 1;
    public static final int LEVEL_I = 2;
    public static final int LEVEL_W = 3;
    public static final int LEVEL_E = 4;
    public static final int LEVEL_A = 5;
    public static final int LEVEL = 0;


    private static final String TAG = "android-crop";

    public static void e(String msg) {
        if(LEVEL > LEVEL_E) return;
        android.util.Log.e(TAG, msg);

    }

    public static void e(String msg, Throwable e) {
        if(LEVEL > LEVEL_E) return;
        android.util.Log.e(TAG, msg, e);
    }

    public static void i(String msg) {
        if(LEVEL > LEVEL_I) return;
        android.util.Log.i(TAG, msg);
    }

    public static void d(String msg, Throwable e) {
        if(LEVEL > LEVEL_D) return;
        android.util.Log.d(TAG, msg);
    }

    public static void w(String msg, Throwable e) {
        if(LEVEL > LEVEL_W) return;
        android.util.Log.w(TAG, msg);
    }
}
